using System;
using System.ComponentModel.DataAnnotations;

namespace SIOGDE.AccesoDatos.Entidades
{
 public partial class Gestion
 {
     public Gestion()
     {
         Guid = System.Guid.NewGuid().ToString();
     }
     #region foreign Keys
     #endregion
     public virtual int   Id { get; set;}

     
     [StringLength(50, ErrorMessage = "{0} debe tener al menos {2} caracteres.", MinimumLength = 2)]
     [Display(Name = "Guid")]
     public virtual string   Guid { get; set;}

     [Required(ErrorMessage="Codigo es requerido.")]
     [StringLength(50, ErrorMessage = "{0} debe tener al menos {2} caracteres.", MinimumLength = 2)]
     [Display(Name = "Codigo")]
     public virtual string   Codigo { get; set;}

     [Required(ErrorMessage="Nombre es requerido.")]
     [StringLength(50, ErrorMessage = "{0} debe tener al menos {2} caracteres.", MinimumLength = 2)]
     [Display(Name = "Nombre")]
     public virtual string   Nombre { get; set;}

     [Required(ErrorMessage="Activo es requerido.")]
     [Display(Name = "Activo")]
     public virtual bool   Activo { get; set;}

     [StringLength(100, ErrorMessage = "{0} debe tener al menos {2} caracteres.", MinimumLength = 2)]
     [Display(Name = "Observaciones")]
     public virtual string   Observaciones { get; set;}
 }
}

